/*
 * Path.h
 *
 *  Created on: Jan 19, 2012
 *      Author: jacobimo
 */

#ifndef PATH_H_
#define PATH_H_
#include "Location.h"

class Path {
public:
	Path();
	Path(int lenght);
	Path(Path const &p);
	virtual ~Path();
	int add(int x,int y);
	int add(const Location &loc);
	Location& getNext()const;
	int getLenght()const;
	int getCount()const ;
	Location& operator[] (int i);
	Location& operator[] (int i) const;


private:
	int _location;
	Location* _path;
	int _lenght;
	int _count;




};

#endif /* PATH_H_ */
